package com.woniuxy.shop.Service;

import com.hc.entity.*;
import com.woniuxy.shop.Entity.ChartData;
import com.woniuxy.shop.Entity.ResponseEntity;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.List;

/**
 * @ClassName LLService
 * @Description
 * @Author ll
 * @Date 2022/10/19 15:37
 * @Version 1.0
 **/
public interface LLService {

    boolean isexitshop(int id);

    void insertshop(Shop shop);

    boolean ispass(int id);

    void insertgoods(Goods goods);

    List<Goods> getmygoods(int id);

    Goods getgoodsdetail(int id);

    void changestock(int id,int stock);

    void offyheshelf(int id);

    List<Order> finish(int shopid);

    List<Order> allorder(int shopid);

    List<Order> notfinish(int shopid);

    void addsecondkill(Seckill seckill);


    void addGoodsDiscountMid(int discount, int goodsId);

    void addDiscountType(DiscountType discountType,int goodsid);

    void dayang(int shopid);

    void openshop(int shopid);

    Shop getshopstatus(int id);

    BigDecimal today(String date, int id) throws ParseException;

    BigDecimal month(String date, int id) throws ParseException;

    ChartData getChartData(String data,int shopid) throws ParseException;

    Order getorder(int id);

    void checkorder(int id);

    ResponseEntity secondkill(int id);

    ResponseEntity yiren(Seckill getsecondkill);
}